package com.ruoyi.system.domain.zhuangxiumain.orderformMain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderChange extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 换货列表的id
	 */
	@TableId(type = IdType.AUTO)
	private Integer orderChangeId;

	/**
	 * 订单表的id
	 */
	private Integer orderId;

	/**
	 * 退货人的id
	 */
	private Integer customerId;

	/**
	 * 商家的id
	 */
	private Integer supplierId;

	/**
	 * 换货的原因
	 */
	private String orderChangeReason;

	/**
	 * 换货的凭证
	 */
	private Integer orderChangePicture;

	/**
	 * 换货的申请时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date orderChangeApplicationTime;

	/**
	 * 换货的审核时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date orderChangeAuditTime;

	/**
	 * 0未审核，1通过，2拒绝
	 */
	private Integer orderChangeStatus;

	/**
	 * 拒绝换货的原因
	 */
	private String orderChangeFailedReason;


	@TableField(exist = false)
	private List fileList;
	@TableField(exist = false)
	private List<Map<String,Object>> urlList;
	@TableField(exist = false)
	private String img0;
	@TableField(exist = false)
	private String img1;
	@TableField(exist = false)
	private String img2;
	@TableField(exist = false)
	private String img3;


}
